package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.DeleteSmsTemplateResponseModel;

/**
 * 删除短信模板响应转换
 * @author 紫灵
 * @date 2023年02月13日 17时23分02秒
 */
public class DeleteSmsTemplateResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private DeleteSmsTemplateResponseConvert(){}

    /**
     * 内容转模型
     * @param deleteSmsTemplateResponseBody 删除短信模板响应内容
     * @return 删除短信模板响应模型
     */
    public static DeleteSmsTemplateResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.DeleteSmsTemplateResponseBody deleteSmsTemplateResponseBody){
        DeleteSmsTemplateResponseModel deleteSmsTemplateResponseModel = new DeleteSmsTemplateResponseModel();
        deleteSmsTemplateResponseModel.setTemplateCode(deleteSmsTemplateResponseBody.getTemplateCode());
        deleteSmsTemplateResponseModel.setCode(deleteSmsTemplateResponseBody.getCode());
        deleteSmsTemplateResponseModel.setMessage(deleteSmsTemplateResponseBody.getMessage());
        deleteSmsTemplateResponseModel.setRequestId(deleteSmsTemplateResponseBody.getRequestId());
        return deleteSmsTemplateResponseModel;
    }

    /**
     * 内容转模型
     * @param deleteSmsTemplateResponseBody 删除短信模板响应内容
     * @return 删除短信模板响应模型
     */
    public static DeleteSmsTemplateResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.DeleteSmsTemplateResponseBody deleteSmsTemplateResponseBody){
        DeleteSmsTemplateResponseModel deleteSmsTemplateResponseModel = new DeleteSmsTemplateResponseModel();
        deleteSmsTemplateResponseModel.setTemplateCode(deleteSmsTemplateResponseBody.getTemplateCode());
        deleteSmsTemplateResponseModel.setCode(deleteSmsTemplateResponseBody.getCode());
        deleteSmsTemplateResponseModel.setMessage(deleteSmsTemplateResponseBody.getMessage());
        deleteSmsTemplateResponseModel.setRequestId(deleteSmsTemplateResponseBody.getRequestId());
        return deleteSmsTemplateResponseModel;
    }

}
